package com.loooooo.pm2024.modules.pm.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.loooooo.pm2024.config.BigIDSerialize;
import com.loooooo.pm2024.data.BaseEntity;

import java.io.Serializable;

public class Attachment extends BaseEntity implements Serializable {
    @JsonSerialize(using = BigIDSerialize.class)
    private Long ownerId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long issueId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long taskId;
    @JsonSerialize(using = BigIDSerialize.class)
    private Long commentId;


    @JsonSerialize(using = BigIDSerialize.class)
    private Long businessId;
    private String type;//issue comment task
    private String filename;
    private Integer size;
    private String contentType;

    public Long getIssueId() {
        return issueId;
    }

    public void setIssueId(Long issueId) {
        this.issueId = issueId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public Long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Long ownerId) {
        this.ownerId = ownerId;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Long getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
